package mediator.example;

/**
 * 例子:美国和伊拉克之间的对话通过联合国安理会作为中介来完成
 */
public class TestMethod {

    public static void main(String[] args) {
        UnitedNationsSecurityCouncil UNSC = new UnitedNationsSecurityCouncil();
        USA c1 = new USA(UNSC);
        Iraq c2 = new Iraq(UNSC);

        UNSC.setColleague1(c1);
        UNSC.setColleague2(c2);

        c1.declare("不准研制核武器,否则要发动战争！");
        c2.declare("我们没有核武器,也不怕侵略！");

    }
}
